package com.helloworld.pojo;



import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashSet;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class User {


    private Integer id;
    private String name;
    private String password;

    //记住角色
    private Set<Role> roles = new HashSet<>();



}